<?php
/* @var $this AcentralController */
/* @var $model Acentral */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'acentral-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Campos marcados com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>
<div class="col3">
	<div class="row">
		<?php echo $form->labelEx($model,'Arquivo'); ?>
		<?php echo $form->textField($model,'Arquivo',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'Arquivo'); ?>
	
                <?php echo $form->labelEx($model,'Empresa'); ?>
                <?php echo $form->dropDownList($model,'Empresa', Empresa::model() ->getTypeOptions()); ?>
		<?php //echo $form->textField($model,'Empresa'); ?>
		<?php echo $form->error($model,'Empresa'); ?>
        
        	<?php echo $form->labelEx($model,'CodUnidade'); ?>
		<?php echo $form->dropDownList($model,'CodUnidade', Unidade::model() ->getTypeOptions()); ?>
		<?php echo $form->error($model,'CodUnidade'); ?>
           
                <?php echo $form->labelEx($model,'CodArea'); ?>
		<?php echo $form->dropDownList($model,'CodArea', Area::model() ->getTypeOptions()); ?>
		<?php echo $form->error($model,'CodArea'); ?>

		<?php echo $form->labelEx($model,'Responsavel'); ?>
		<?php echo $form->textField($model,'Responsavel',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Responsavel'); ?>
            
            	<?php echo $form->labelEx($model,'Emprestado'); ?>
                <?php echo $form->dropDownList($model,'Emprestado', $model->empOptions); ?> 
		<?php echo $form->error($model,'Emprestado'); ?>
                
                <?php echo $form->labelEx($model,'DataEmp'); ?>
		<?php echo $form->textField($model,'DataEmp',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'DataEmp'); ?>
	</div>
</div>
<div class="col3">
	<div class="row">
		<?php echo $form->labelEx($model,'Assunto1'); ?>
		<?php echo $form->textField($model,'Assunto1',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'Assunto1'); ?>

		<?php echo $form->labelEx($model,'Assunto2'); ?>
		<?php echo $form->textField($model,'Assunto2',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'Assunto2'); ?>

		<?php echo $form->labelEx($model,'Assunto3'); ?>
		<?php echo $form->textField($model,'Assunto3',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'Assunto3'); ?>

		<?php echo $form->labelEx($model,'Ano'); ?>
		<?php echo $form->textField($model,'Ano',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'Ano'); ?>
            
                <?php echo $form->labelEx($model,'Periodo'); ?>
		<?php echo $form->textField($model,'Periodo',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Periodo'); ?>
            

                <?php echo $form->labelEx($model,'NomeEmp'); ?>
		<?php echo $form->textField($model,'NomeEmp',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'NomeEmp'); ?>
                
                <?php echo $form->labelEx($model,'RamalEmp'); ?>
		<?php echo $form->textField($model,'RamalEmp',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'RamalEmp'); ?>
	</div>
</div>
<div class="col3">
    <div class="row">
		<?php echo $form->labelEx($model,'Tipo'); ?>
		<?php echo $form->textField($model,'Tipo'); ?>
		<?php echo $form->error($model,'Tipo'); ?>

		<?php echo $form->labelEx($model,'LocalCaixa'); ?>
		<?php echo $form->textField($model,'LocalCaixa',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'LocalCaixa'); ?>
	
                <?php echo $form->labelEx($model,'Localizacao'); ?>
		<?php echo $form->textField($model,'Localizacao',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'Localizacao'); ?>
		
                <?php echo $form->labelEx($model,'Observacao'); ?>
		<?php echo $form->textField($model,'Observacao',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Observacao'); ?>
        
                <?php echo $form->labelEx($model,'Temporalidade'); ?>
		<?php echo $form->textField($model,'Temporalidade'); ?>
		<?php echo $form->error($model,'Temporalidade'); ?>
            

		<?php echo $form->labelEx($model,'Descarte'); ?>
		<?php echo $form->textField($model,'Descarte',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Descarte'); ?>
                


                <?php $model->idProjAcentral=Yii::app()->user->pidproj;       
                echo $form->hiddenField($model,'idProjAcentral'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Salvar' : 'Salvar'); ?>
	</div>
</div>
<?php $this->endWidget(); ?>

</div><!-- form -->